package com.cuhk.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cuhk.common.utils.PageUtils;
import com.cuhk.gulimall.product.entity.AttrEntity;
import com.cuhk.gulimall.product.vo.AttrRespVo;
import com.cuhk.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author chenyuijing
 * @email torchsam@aliyun.com
 * @date 2024-06-10 11:23:16
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attrVO);

    void updateAttr(AttrVo attrVO);

    PageUtils queryAttrPage(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getAttrInfo(Long attrId);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    PageUtils getRelationNoAttr(Long attrGroupId, Map<String, Object> params);

    List<Long> selectSearchAttrs(List<Long> targetAttrIds);
}

